package day5.zuoye;

public class Test03 {
    public static void main(String[] args) {
        double f=10;
        double i=0;
        double b=0;
        int a=0;
        for(;;){
            f=f*0.8;
            a++;
            b+=f;
            if(f<0.01){
                break;
            }
        }
        System.out.println(a+"次");
        System.out.println(b+"米");
    }
}
